import request from '@/utils/request'

export function load() {
  return request({
    url: '/menu/load',
    method: 'post'
  })
}

export function selectAllMenu(data) {
  return request({
    url: '/menu/all',
    method: 'post',
    data: data
  })
}

export function selectAllMenuId(data) {
  return request({
    url: '/menu/id',
    method: 'post',
    data: data
  })
}

export function addMenu(data) {
  return request({
    url: '/menu/add',
    method: 'post',
    data: data
  })
}

export function updateMenu(data) {
  return request({
    url: '/menu/update',
    method: 'post',
    data: data
  })
}

export function deleteMenu(data) {
  return request({
    url: '/menu/delete',
    method: 'post',
    data: data
  })
}
